package com.housediyadmin.view
{   	
	import com.housediyadmin.view.components.TestView;
	
	import flash.events.MouseEvent;
	
	import mx.controls.Alert;
	
	import org.robotlegs.mvcs.Mediator;
	
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/2/15
	 */ 
	public class TestViewMediator extends Mediator
	{
		[Inject]
		public var view:TestView;
		
		override public function onRegister():void
		{
			view.test.addEventListener(MouseEvent.CLICK, test);
		}
		
		private function test(event:MouseEvent):void
		{
			Alert.show("ok");
		}
	}
}